package excercise;

public class EX01_Q07 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//변수
		double x = 2.5;
		double y = -1.5;
		int m = 18;
		int n = 4;
		
		double a = 0;
		double b = 0;
		double c = 0;
		double d = 0;
		
		//계산
		a = x + n *y - (x + n) *y;
		b = m / n + m % n;
	    c = 5 * x - n / 5;
	    d = 1 - (1 - (1 - (1 - n)));
	    
	    System.out.println(a);
	    System.out.println(b);
	    System.out.println(c);
	    System.out.println(d);
	    //연산자 우선순위
				
	}

}
